package br.com.rpteixeira.service;

import java.util.List;

import br.com.rpteixeira.entity.Entity;
import br.com.rpteixeira.entity.filter.EntitySearchFilter;
import br.com.rpteixeira.exceptions.ServiceExcetion;

public interface EntityService<ENTITY extends Entity,ENTITYSEARCHFILTER extends EntitySearchFilter> {
	public ENTITY insert(ENTITY entity) throws ServiceExcetion;
	public void remove(ENTITY entity) throws ServiceExcetion;
	public ENTITY update(ENTITY entity) throws ServiceExcetion;
	public List<ENTITY>find(ENTITYSEARCHFILTER filter) throws ServiceExcetion;
	public List<ENTITY>findAll() throws ServiceExcetion;
	public ENTITY findById(ENTITY entity) throws ServiceExcetion;
}
